Trees | Indices | Toggle frames |
---|
ManagedSoundPlayer |
play(self)
Play the source.
|
pyglet.image.Animation |
get_animation(self)
Import all video frames into memory as an Animation.
|
float |
get_next_video_timestamp(self)
Get the timestamp of the next video frame.
|
pyglet.image.AbstractImage |
get_next_video_frame(self)
Get the next video frame.
|
float |
duration
The length of the source, in seconds.
|
AudioFormat |
audio_format = None
Format of the audio in this source, or None if the source is
silent.
|
VideoFormat |
video_format = None
Format of the video in this source, or None if there is no
video.
|
Play the source.
This is a convenience method which creates a ManagedSoundPlayer for this source and plays it immediately.
Import all video frames into memory as an Animation.
An empty animation will be returned if the source has no video. Otherwise, the animation will contain all unplayed video frames (the entire source, if it has not been queued on a player). After creating the animation, the source will be at EOS.
This method is unsuitable for videos running longer than a few seconds.
Since: pyglet 1.1
Since: pyglet 1.1
Get the next video frame.
Video frames may share memory: the previous frame may be invalidated or corrupted when this method is called unless the application has made a copy of it.
Since: pyglet 1.1
The length of the source, in seconds.
Not all source durations can be determined; in this case the value is None.
Read-only.
Trees | Indices | Toggle frames |
---|
Generated by Epydoc 3.0beta1 on Thu Dec 31 17:58:19 2009 | http://epydoc.sourceforge.net |